package net.starwifi.duobao.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

import javax.persistence.*;

/**
 * Created by Administrator on 2015/9/28.
 */
@Entity
@Table(name = "duob_message")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "duob_message_sequence")
public class Message extends BaseEntity {


    /** 0用户消息,1系统消息*/
    private int type;

    /** 用户ID */
    private Long memberId;

    /** 标题. */
    private String title;

    /** 内容. */
    private String content;

    /** 是否已读.*/
    private Boolean isRead;


    @Column
    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Column
    @JsonProperty
    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    @Column
    @JsonProperty
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Column
    @JsonProperty
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Column
    @JsonProperty
    public Boolean getIsRead() {
        return isRead;
    }

    public void setIsRead(Boolean isRead) {
        this.isRead = isRead;
    }

}
